package com.commons.tools.multiconn.common2;


import lombok.Getter;

@Getter
public enum BizServiceType {

    IMPL_A("a","A"),
    IMPL_B("b","B");

    private final String code;

    private final String name;

    BizServiceType(String code , String name) {
        this.code = code;
        this.name = name;
    }

    public static  BizServiceType getByCode(String code) {
        for (BizServiceType item : BizServiceType.values()) {
            if (item.code.equals(code)) {
                return item;
            }
        }
        return null;
    }

}
